﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using PiscoSourDominio;

namespace PiscoSourRESTServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IPlatos" in both code and config file together.
    [ServiceContract]
    public interface IPlatos
    {

        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "ListaPlatosFaltantes/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        List<Plato> ListaPlatosFaltantes(string codigo);

        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "OPlato/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        Plato ObtenerPlato(string codigo);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "ListaPlatos", ResponseFormat = WebMessageFormat.Json)]
        List<Plato> ListaPlatos();
    }
}
